export type ColumnType = 'import' | 'export' | 'add' | 'delete' | 'allDelete'

const ColumnMap = {
  import: '导入',
  export: '导出',
  add: '新增',
  delete: '删除',
  allDelete: '全部删除',
}

export const columnKeys: ColumnType[] = Object.keys(ColumnMap) as ColumnType[]

export const columnValues = Object.values(ColumnMap)

export interface PropsInterface {
  title?: string
  columns?: ColumnType[]
  search?: boolean
}
